package com.henu.rescue.mapper;

import com.henu.rescue.entity.Station;
import com.henu.rescue.entity.Telephone;
import com.henu.rescue.entity.VO.TelVO;
import com.henu.rescue.utils.Page;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;


@Mapper
public interface TelMapper {

    //添加电话信息
    Integer addTel(Telephone telephone);

    Integer delTel(Integer telId);

    Integer updateTel(Telephone telephone);

    //分页查询
    List<TelVO> selectTelInfoByPage(Page<TelVO> page) ;
    int getCountByPage(Page<TelVO> page);

    Integer selectTel(String telNumber, Integer telType, Integer hostId);

    Integer delTelFromOrg(Integer telType, Integer hostId);

    Telephone selectById(Integer telId);

    Telephone selectByTypeHostId(Integer telType, Integer hostId);
}
